<template>
  <div class="playground">
    <svg version="1.1"
         xmlns="http://www.w3.org/2000/svg"
         width="531"
         height="344"
    >
      <image x="0" y="0" width="100%" height="100%"
             xlink:href="../../assets/image/playerGround/playground.png"
             preserveAspectRatio="xMinYMin meet"/>
      <circle v-for="player in playersPosition" :cx="player.x1" :cy="player.y1" r="15" stroke="#194568"
              stroke-width="2" fill="#194568"/>

      <text v-for="player in playersPosition" :x="player.x1" :y="player.y1" text-anchor="middle" font-weight="bold" transform="translate(0,7)" font-size="20px" fill="white">{{player.number}}</text>
    </svg>
  </div>
</template>

<script>
  export default {
    name: "AveragePosition",
    props:{
      playersPosition:{
        type:Array,
        default(){
          return []
        }
      }
    },
    data(){
      return {

      }
    },
    watch:{
      positionData:{

      }
    },
    computed:{

    },
    created() {

    },
    mounted() {

    },
    methods:{

    },
  }
</script>

<style scoped>
  .playground {
    position: relative;
    width: 531px;
    height: 344px;
    margin-top: 5px;
  }
</style>